package kosta.model.reply.dis;

import java.util.List;

import javax.annotation.Resource;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.stereotype.Repository;

@Repository
public class DisReplyDaoImpl implements DisReplyDao {
	@Resource(name = "sqlSessionTemplate")
	private SqlSessionTemplate sqlSessionTemplate;

	public List<DisReplyVO> getDisReplyList(String disNo) throws Exception {
		return this.sqlSessionTemplate.selectList("disreply.getDisReplyList",disNo);
	}

	public void updateDisReply(DisReplyVO drvo) throws Exception {
		this.sqlSessionTemplate.update("disreply.updateDisReply",drvo);
	}

	public void deleteDisReply(int disReNo) throws Exception {
		this.sqlSessionTemplate.delete("disreply.deleteDisReply",disReNo);
	}

	public void insertDisReply(DisReplyVO drvo) throws Exception {
		this.sqlSessionTemplate.insert("disreply.insertDisReply",drvo);
	}
}
